<template>
    <div class="home">
        <span>{{ LaserRadarComponent.Default.Title.value }}</span>
        <span>实训教学软件</span>
        <span>Loading</span>
    </div>
</template>

<script setup lang="ts">
import LaserRadarComponent from './LaserRadarComponent';
import { onMounted, onUnmounted } from 'vue';

// onMounted(() =>{
// console.log('================================');
// LaserRadarComponent.Default.Awake()});
// onUnmounted(() => LaserRadarComponent.Default.Destroy());
</script>

<style scoped>
.home {
    background-image: url('/static/LaserRadar/Home.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;

    display: flex;
    flex-direction: column;
}

span:first-child {
    display: inline-block;

    margin-left: 16rem;
    margin-top: 12rem;

    color: white;
    font-size: 7.2rem;
}

span:nth-of-type(2) {
    display: inline-block;

    margin-left: 16rem;
    margin-top: 3rem;

    color: white;
    font-size: 4.8rem;
}

span:last-child {
    position: absolute;
    left: 50%;
    bottom: 12rem;

    transform: translateX(-50%);

    display: block;

    color: white;
    font-size: 3.6rem;

    letter-spacing: 2px;
    background: linear-gradient(270deg, #218CDE 0%, #807DE1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
</style>